package com.quarters.mapper;

import com.quarters.bean.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.quarters.bean.Role;
import com.quarters.bean.ztree.ZtreeBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 冯政尚
 * @since 2019-09-02
 */
public interface MenuMapper extends BaseMapper<Menu> {

    List<Menu> findMenuByRole(@Param("param") Role role);

    /**
     * @param id
     * @return 根据当前用户查询该角色
     */
    List<ZtreeBean>findMenuZtree(@Param("id") Long id);

    //固定查询角色
    List<ZtreeBean> findMenu();

}
